package com.google.code.tretris.server;

import java.util.ArrayList;

import com.google.code.tretris.events.UpdateBoardEvent;

/**
 * Callback interface for listening to game play heartbeats.
 * @author johan maasing
 *
 */
public interface HeartbeatListener {
	/**
	 * The result of one loop through the game play.
	 * @param result The updated game boards.
	 */
	public void heartbeatResult(ArrayList<UpdateBoardEvent> result) ;
	
	/**
	 * The game has ended and all the boards are now invalid.
	 */
	public void gameOver() ;
}
